//
//  MyTableViewController.m
//  TeamProject_1.0
//
//  Created by lanou3g on 15/12/7.
//  Copyright © 2015年 wey. All rights reserved.
//

#import "MyTableViewController.h"
@interface MyTableViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (nonatomic, strong) NSArray *titles;
@property (nonatomic, strong) NSArray *images;
@end

@implementation MyTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setUpView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void) setUpView {
    self.iconView.layer.cornerRadius = 25.0;
    self.tableView.rowHeight = 60.0;
    
    self.titles = @[@" 消息", @" 博客", @" 团队"];
    self.images = @[@"me-message", @"me-blog", @"me-team"];

    
}
#pragma mark - Table view data source
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return self.titles.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"myCell" forIndexPath:indexPath];
    
    cell.imageView.image = [UIImage imageNamed:self.images[indexPath.row]];
    cell.textLabel.text = self.titles[indexPath.row];
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    return cell;
}

/** 左按钮点击 */
- (IBAction)leftBarButton:(id)sender {
    [self.sideMenuViewController presentLeftMenuViewController];
    
}


@end
